﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public class ProduceReceivingDto
    {
        /// <summary>
        /// 入库申请单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 源地点
        /// </summary>
        public string Sourcelocation { get; set; }

        /// <summary>
        /// 生产工单号
        /// </summary>
        public string WorkOrderSn { get; set; }

        /// <summary>
        /// 生产订单号
        /// </summary>
        public string ProductionOrderSn { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        public int Floor {  get; set; }

        public List<ProduceReceivingChildDto> ChildList {  get; set; }  = new List<ProduceReceivingChildDto>();
    }

    public class ProduceReceivingChildDto
    {
        /// <summary>
        /// 行项目
        /// </summary>
        public int IineItem { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string TMaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string TMaterialName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ModelSpec { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNo { get; set; }

        /// <summary>
        /// 申请入库数量
        /// </summary>
        public decimal ReceivingQty { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        public decimal? Weight { get; set; }

        /// <summary>
        /// 重量单位
        /// </summary>
        public string WeightUnitName { get; set; }

    }
}
